//
//  KaagadPesoDataInterface.h
//  Kaagad Peso
//
//  Created by ZhengChengFeng on 2024/10/15.
//

#ifndef DKDefinesDataInterface_h
#define DKDefinesDataInterface_h

#define kAppBundleId       [[NSBundle mainBundle] bundleIdentifier]

#define kAppVersion        [NSString stringWithFormat:@"%@",[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]]

#define kAppName      [NSString stringWithFormat:@"%@",[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"]]

#define kExpireCode         -2
#define kSuccessCode        0

#define kBaseUrl            @"https://combine-overseas.com/dkit"//@"http://8.215.22.100/dkit"
#define kAgreementUrl       @"https://combine-overseas.com/traverse"//@"http://8.215.22.100/traverse"

#define kCheckLaungageUrl   @"/north/islet"

#define kLoginUrl           @"/north/adorning"
#define kCaptureUrl         @"/north/translated"
#define kLogoutUrl          @"/north/shin"
#define kClearAccountUrl    @"/north/malu"

#define kHomeUrl            @"/north/clip"
#define kQuestionListUrl    @"/north/grained"
#define kSaveQuestionUrl    @"/north/mentioned"

#define kApplyUrl           @"/north/collected"

#define kOrderDetailUrl     @"/north/guilty"
#define kOrderNoUrl         @"/north/soldier"

#define kCityAddressUrl     @"/north/behaved"

#define kCalculateUrl       @"/north/hundred"

#define kOrderListUrl       @"/north/twentieth"

#define kMineUrl            @"/north/atonement"

#define kGetIdCardInfoUrl     @"/north/courageous"
#define kUploadPicUrl         @"/north/gloating"
#define kSaveIdIdentifyYNUrl  @"/north/tide"
#define kSaveIdIdentifyYDUrl  @"/north/fiu"

#define kPersonInfoUrl      @"/north/reference"
#define kSavePersonInfoUrl  @"/north/conversation"

#define kEmergencyUrl       @"/north/missionaries"
#define kSaveEmergencyUrl   @"/north/justified"

#define kBindBankInfoUrl    @"/north/continuing"
#define kSaveBankInfoUrl    @"/north/lord"


#define kUploadLocationDataUrl   @"/north/caulfeild"
#define kUploadDeviceDataUrl     @"/north/widespread"
#define kUploadIDFADataUrl       @"/north/necessitated"
#define kUploadMaiDianDataUrl    @"/north/pot"
#define kUploadContactDataUrl    @"/north/ugly"


NS_INLINE NSString * absolutePath(NSString *path) {
    NSString *fullPath;
    if([path hasPrefix:@"http"])
        fullPath=path;
    else{
        fullPath = [NSString stringWithFormat:@"%@%@", kBaseUrl, path];
    }
    return fullPath;
}

#endif /* KaagadPesoDataInterface_h */
